import request from '@/utils/request'

// 配置
export function getConfig() {
    return request.get({ url: '/config/getConfig' })
}

// 工作台主页
export function getWorkbench() {
    return request.get({ url: '/workbench/index' })
}

//字典数据
export function getDictData(params: any) {
    return request.get({ url: '/config/dict', params })
}

//获取银行列表
export function getBankList(params?: any) {
    return request.get({ url: '/config/bankList', params })
}


//获取下级区域列表
export function getNextLevelAreaList(params?: any) {
    return request.get({ url: '/config/nextLevelAreaList', params })
}

// 获取统计-实时
export function statisticRealTime(params: any) {
    return request.get({ url: '/workbench/statisticRealTime', params })
}

// 获取统计-合作统计
export function statisticCooperation(params: any) {
    return request.get({ url: '/workbench/statisticCooperation', params })
}

// 获取统计-需求统计
export function statisticDemand(params: any) {
    return request.get({ url: '/workbench/statisticDemand', params })
}

// 获取统计-财务统计
export function statisticFinance(params: any) {
    return request.get({ url: '/workbench/statisticFinance', params })
}

// 获取统计-产品排行榜
export function statisticProductRank(params: any) {
    return request.get({ url: '/workbench/statisticProductRank', params })
}

// 获取统计-渠道排行榜
export function statisticChannelRank(params: any) {
    return request.get({ url: '/workbench/statisticChannelRank', params })
}

// 获取统计-新增有效渠道
export function statisticChannel(params: any) {
    return request.get({ url: '/workbench/statisticChannel', params })
}

// 获取统计-新增有效用户
export function statisticUser(params: any) {
    return request.get({ url: '/workbench/statisticUser', params })
}